package com.zatech.cgnci.project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zatech.cgnci.project.dto.CgnciCodeTypeQueryDTO;
import com.zatech.cgnci.project.entity.CgnciCodeTypeDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zatech.cgnci.project.vo.AllCgnciCodeTypeVO;
import com.zatech.cgnci.project.vo.CgnciCodeTypeVO;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 基础信息表 Mapper 接口
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Mapper
public interface CgnciCodeTypeMapper extends BaseMapper<CgnciCodeTypeDO> {

    IPage<CgnciCodeTypeVO> pageHigherCode(@Param("Page") Page page, @Param("dto") CgnciCodeTypeQueryDTO queryDTO);

    IPage<CgnciCodeTypeVO> pageCode(@Param("Page") Page page, @Param("dto") CgnciCodeTypeQueryDTO queryDTO);

    List<AllCgnciCodeTypeVO> queryAllCodeShorthand();
}
